package com.cskaoyan.controller.wx;

import com.cskaoyan.service.wx.WxHomeIndexService;
import com.cskaoyan.vo.BaseRespVo;
import com.cskaoyan.vo.wx.WxHomeIndexVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author hsp
 * @date 2021/5/12 21:53
 */
@RestController
public class WxHomeIndexController {

    @Autowired
    WxHomeIndexService wxHomeIndexService;
    @RequestMapping("wx/home/index")
    public BaseRespVo homeIndex(){

      WxHomeIndexVo wxHomeIndexVo =   wxHomeIndexService.getHomeIndex();

      return BaseRespVo.ok(wxHomeIndexVo);
    }
}
